package org.wzy.design.patterns.delegate;

public class Dispatcher implements IDelegateExecutor {

	IDelegateExecutor executor;
	
	public Dispatcher(IDelegateExecutor executor) {
		this.executor = executor;
	}

	/**
	 * 椤圭洰缁忕悊锛岃櫧鐒朵篃鏈夋墽琛屾柟娉曪紝浣嗘槸浠栫殑宸ヤ綔鑱岃矗鏄笉涓�鏍风殑
	 */
	@Override
	public void doing() {
		executor.doing();
	}

}
